package com.hxzy.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.hxzy.shop.common.dto.merchant.req.AnnouncementMerchantListReq;
import com.hxzy.shop.common.dto.merchant.resp.AnnouncementDetailResp;
import com.hxzy.shop.dto.req.AnnouncementIdReq;
import com.hxzy.shop.dto.resp.AnnouncementClassificationListResp;
import com.hxzy.shop.dto.resp.AnnouncementMerchantDetailResp;
import com.hxzy.shop.entity.Announcement;

import java.util.List;

/**
 * 功能描述:公告(Announcement)表服务接口
 *
 * @author tonneyyy
 */
public interface AnnouncementService  extends IService<Announcement> {


    /**
     * 公告 查看公告
     * @param announcementId
     * @return
     */
    //AnnouncementDetailResp announcementLook(Long announcementId);

    /**
     * 公告 查看公告
     * @return
     */
    AnnouncementDetailResp announcementLook(AnnouncementIdReq req);

    /**
     * 公告 商户接受的公告分页
     * */
    PageInfo<AnnouncementMerchantDetailResp> getAnnouncementMerchant(AnnouncementMerchantListReq req);

    /**
     * 公告 商户公告分类
     * */
     List<AnnouncementClassificationListResp> getAnnouncementClassification(Integer isLook);

    /**
     * 公告 未查看公告数量
     * */
    Integer getAnnouncementNotLook();
}
